package com.fcscs.cservice.client.common.controller;

import java.util.List;

import com.fcscs.core.gwt.common.AsyncCallbackListener;
import com.fcscs.core.gwt.common.GWTAsyncCaller;
import com.fcscs.cservice.domain.BillOption;
import com.fcscs.cservice.gwt.client.InRoomConfService;
import com.fcscs.cservice.gwt.client.InRoomConfServiceAsync;
import com.google.gwt.core.client.GWT;

public class InRoomServiceController extends GWTAsyncCaller{
	private static InRoomServiceController INSTANCE=new InRoomServiceController();
	private InRoomConfServiceAsync InRoomConfServiceGWT = GWT.create(InRoomConfService.class);
	public static InRoomServiceController getINSTANCE(){
    	return INSTANCE;
    } 
	public void getBillOption(long orgId,long propId,AsyncCallbackListener<List<BillOption>> callback){
		InRoomConfServiceGWT.getBillOptionList(orgId, propId, createCallBack(0, callback));
	}
	public void saveBillOption(BillOption billOption,AsyncCallbackListener<BillOption> callback){
		InRoomConfServiceGWT.saveBillOption(billOption, createCallBack(0, callback));
	}
	public void deleteBillOption(BillOption billOption,AsyncCallbackListener<Boolean> callback){
		InRoomConfServiceGWT.deleteBillOption(billOption, createCallBack(0, callback));
	}
	public void isBillOptionTaken(long orgId,long propId,String name,long id,AsyncCallbackListener<Boolean> callback){
		InRoomConfServiceGWT.isBillOptionTaken(orgId, propId, name, id, createCallBack(0, callback));
	}
	public void createBillOption(BillOption billOption,AsyncCallbackListener<BillOption> callback){
		InRoomConfServiceGWT.createBillOption(billOption, createCallBack(0, callback));
	}
}
